import React, { useState } from 'react'
import { useNavigate } from 'react-router-dom';

function Zfcg() {
    const navigate = useNavigate();
    const [zftext,setzftext] = useState('支付中...');

    setTimeout(() => {
        setzftext('支付成功')
        setTimeout(() => {
            navigate('/home/:place')
    }, 1500);
    }, 1500);
  return (
    <div>
      <h1>{zftext}</h1>
    </div>
  )
}

export default Zfcg
